#设置cmake最低版本
cmake_minimum_required(VERSION 3.4.1)

#设置项目名称
project(tst_qt3d_auto_core)



#引入add_module模板文件
include(${ISSQTTESTROOTDIR}/cmake/add_module.cmake)

#设置测试类型，auto为自动测试，manual为手动测试,即test目录下的文件夹名
set(TEST_TYPE auto)
#设置模块名
set(MODULE qt3d)
#设置需要链接的模块
set(LinkQt Core Widgets Concurrent 3DCore)
#设置需要链接的模块的私有模块
set(LinkQtPrivate Core 3DCore)
#设置排除的文件夹
set(EXCLUDE domain qml-qtquicktest)


set(TEST_ITEMS ${TEST_ITEMS}
 core/common
 core/handle
 core/qresourcemanager
 core/qcircularbuffer
 core/qboundedcircularbuffer
 core/nodes
 core/qaspectengine
 core/qaspectfactory
 core/qaspectjob
 core/qchangearbiter
 core/qscene
 core/qservicelocator
 core/qjoint
 core/qskeletonloader
 core/qskeleton
 core/qarmature
)

message(Qt${QT_VERSION_MAJOR}3DCorePrivate_DIR=${Qt${QT_VERSION_MAJOR}3DCorePrivate_DIR})

if(DEFINED Qt${QT_VERSION_MAJOR}3DCorePrivate_DIR AND NOT "${Qt${QT_VERSION_MAJOR}3DCorePrivate_DIR}" STREQUAL "")
    list(APPEND TEST_ITEMS
        core/qentity
        core/qframeallocator
        core/qtransform
        core/threadpooler
        core/qpostman
        core/vector4d_base
        core/vector3d_base
        core/aspectcommanddebuggercore/vector4d_sse
        core/vector3d_sse
        core/matrix4x4_sse
        core/matrix4x4_avx2)
else()
    set(EXCLUDE_SRC ${EXCLUDE_SRC}
         core/common/qbackendnodetester.cpp
         core/common/qbackendnodetester.h
     )
endif()

set(PLUGINS QOpenHarmonyPlatformIntegrationPlugin)

if(DEFINED TEST_ITEMS)
    create_library(${TEST_ITEMS})
endif()

